package com.weixinli.beans;

import java.io.Serializable;

public class DetailInfo implements Serializable{
	private int w_uid;//用户ID 外键
	private String uname;//用户昵称
	private String upic;//用户头像
	private String intro;//简介
	private static final long serialVersionUID = 1L;
	@Override
	public String toString() {
		return "DetailInfo [w_uid=" + w_uid + ", uname=" + uname + ", upic="
				+ upic + ", intro=" + intro + "]";
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUpic() {
		return upic;
	}

	public void setUpic(String upic) {
		this.upic = upic;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((intro == null) ? 0 : intro.hashCode());
		result = prime * result + ((uname == null) ? 0 : uname.hashCode());
		result = prime * result + ((upic == null) ? 0 : upic.hashCode());
		result = prime * result + w_uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DetailInfo other = (DetailInfo) obj;
		if (intro == null) {
			if (other.intro != null)
				return false;
		} else if (!intro.equals(other.intro))
			return false;
		if (uname == null) {
			if (other.uname != null)
				return false;
		} else if (!uname.equals(other.uname))
			return false;
		if (upic == null) {
			if (other.upic != null)
				return false;
		} else if (!upic.equals(other.upic))
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}

	public DetailInfo(int w_uid, String uname, String upic, String intro) {
		super();
		this.w_uid = w_uid;
		this.uname = uname;
		this.upic = upic;
		this.intro = intro;
	}

	public DetailInfo() {
		super();
	}
}
